﻿@model FinalOpdracht.Models.Blog

@{
    ViewBag.Title = "Blog - Details";
}

<h4>Detailspagina voor: @Html.DisplayFor(model => model.title)</h4>

<fieldset>
    <legend>Blog</legend>
    <div class="display-field">
        <p class="blogTitle">@Html.DisplayFor(model => model.title)</p>
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.description)
    </div>
</fieldset>
<p>
    @if (Request.IsAuthenticated && HttpContext.Current.User.IsInRole("blogger") || HttpContext.Current.User.IsInRole("admin"))
    {
        @Html.ActionLink("Edit", "Edit", new { id=Model.blogID }) 
        <text>||</text>
        @Html.ActionLink("Terug naar bloglijst", "Index")
    }
    @Html.ActionLink("Terug naar homepagina", "../Home")
</p>
